<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    template="/layout/templateRecuperar.xhtml">

<ui:define name="body">

    <h:form id="loginForm">
     <script language="javascript">
		
					var mensagem = "";
					function clickIE() {
							if (document.all) 
							{
						(mensagem);
						return false;
						}
					}
					function clickNS(e) {

						if(document.layers || (document.getElementById &amp; !document.all))
						{
						if (e.which==2 || e.which==3) {(mensagem);return false;}}}
						if (document.layers)
						{
							document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;
						}else{
							document.onmouseup=clickNS;
							document.oncontextmenu=clickIE;
						}
					document.oncontextmenu=new Function("return false")

	   </script>
    
    
    
		<script language="javascript">

 			function openScheduleRequest()
 				{
   					Fenetre = window.open("http://cadastro.beiramarimoveis.com.br/","sss"," left=520, top=250");
  					Fenetre.focus();
 				}

		</script>
		
          <div class="recuperarSenha">
			<h:messages id="messages" style="text-align:left;color:#9b0700; font-size:10px;" globalOnly="true" styleClass="message"
			            errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg" 
			            rendered="#{showGlobalMessages != 'false'}"/>
            <p>Preencha os campos abaixo para alterar sua senha</p>
			<div class= "pergunta">
			 	<p><span class="formInfo"><a href="senha.htm?width=250" class="jTip" id="one" name="Senha:">?</a></span></p>
			 	<p><span class="formInfo"><a href="novaSenha.htm?width=250" class="jTip" id="one" name="Nova Senha:">?</a></span></p>
			 	<p><span class="formInfo"><a href="repetirSenha.htm?width=250" class="jTip" id="one" name="Repetir senha:">?</a></span></p>
			</div>
			<div class="dialog" >
                <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
						
						<h:outputLabel for="senha">SENHA</h:outputLabel>
						<h:inputSecret id="senha" required="true" value="#{alterarSenha.senhaAtual}"/>
						<h:outputLabel for="novaSenha">NOVA SENHA</h:outputLabel>
						<h:inputSecret id="novaSenha" required="true" value="#{alterarSenha.senha.novaSenha}"/>
						<h:outputLabel for="repetirSenha">REPETIR SENHA</h:outputLabel>
						<h:inputSecret id="repetirSenha" required="true" value="#{alterarSenha.senha.repetirSenha}"/>

                  	  <h:commandButton id="submit" value="alterarSenha" action="#{alterarSenha.alterarSenha()}"/>
        			 <p><s:link id="AtualizarCasdastro" value="Atualize o seu cadastro" immediate="true" onclick="openScheduleRequest(); return false" /></p>
            
                  </h:panelGrid>
            </div>
          </div>   
        
	  </h:form>
 </ui:define>
</ui:composition>
